<?php
    /*
    Name: 秋之德雨默认分类theme
    */
?>
<?php get_header();?>
<div class="layui-content">
	<div class="layui-container">
		<div class="layui-row layui-col-space15 main">
			<div class="map map-class">
<?php if ( function_exists('ah_breadcrumb') ) ah_breadcrumb(); ?>
			</div>
  <?php
  $cat_ID='';
  $flkgg='';
  $cat_ID  = get_query_var('cat');
  $flkgg=get_term_meta($cat_ID,'_prefix_taxonomy_options',true);
  
  if (empty($flkgg['is_filter']) && empty(_qzdy('is_filter_bar')) ) {?>
<div id="map-sub-classification" class="map-sub-classification">
<div class="container">
<?php get_template_part( '/include/expand/category-filter-bar' );?>
</div>
</div>
<?php } ?>
<?php qzdy_sidebar_switch_left()?>
			<div
				class="layui-col-md<?php example_theme_liebiao_kuandu();?> layui-col-lg<?php example_theme_liebiao_kuandu();?>">
				<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
				<div class="title-article list-card item-box<?php echo qzdy_prevent_theme(); ?>">
					<div class="index-post-img-small<?php echo qzdy_prevent_theme(); ?>"><a
							href="<?php the_permalink() ?>">
							<div title="<?php the_title(); ?>"
								class="item-thumb-small lazy commodity-img<?php echo qzdy_prevent_theme(); ?>"
								data-original="<?php $gettesheimg = wp_get_attachment_image_src( get_post_thumbnail_id());if(!empty($gettesheimg)){echo $gettesheimg[0];}else{echo catch_first_image(); }?>"
								style="background-image: url()">
								<span class="layui-badge layui-bg-cyan x"><?php the_time('Y/n/j'); ?></span><svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M903.93 107.306H115.787c-51.213 0-93.204 42.505-93.204 93.72V825.29c0 51.724 41.99 93.717 93.717 93.717h788.144c51.72 0 93.717-41.993 93.717-93.717V201.025c-.512-51.214-43.017-93.719-94.23-93.719zm-788.144 64.527h788.657c16.385 0 29.704 13.316 29.704 29.704v390.229L760.54 402.285c-12.805-13.828-30.217-21.508-48.14-19.971-17.924 1.02-34.821 10.754-46.602 26.114l-172.582 239.16-87.06-85.52c-12.29-11.783-27.654-17.924-44.039-17.924-16.39.508-31.755 7.676-43.53 20.48L86.595 821.705V202.05c-1.025-17.416 12.804-30.73 29.191-30.217zm788.145 683.674H141.906l222.255-245.82 87.06 86.037c12.8 12.807 30.212 18.95 47.115 17.417 17.41-1.538 33.797-11.266 45.063-26.118l172.584-238.647 216.111 236.088 2.051-1.54V825.8c.509 16.39-13.315 29.706-30.214 29.706zm0 0"></path><path d="M318.072 509.827c79.89 0 144.417-65.037 144.417-144.416 0-79.378-64.527-144.925-144.417-144.925-79.891 0-144.416 64.527-144.416 144.412 0 79.892 64.525 144.93 144.416 144.93zm0-225.327c44.553 0 80.912 36.362 80.912 80.91 0 44.557-35.847 81.43-80.912 81.43-45.068 0-80.916-36.36-80.916-80.915 0-44.556 36.872-81.425 80.916-81.425zm0 0"></path></svg></div>
						</a></div>
					<div class="index-post-text-small">
						<h2 title="<?php the_title(); ?>" class="m-t-none text-ellipsis index-post-title text-title"><a
								href="<?php the_permalink() ?>">
								<?php $cat_ID=''; echo $cat_ID; ?><?php if (is_sticky()) {echo  '<span class="layui-badge">推荐</span>';} ?><?php the_title(); ?></a></h2>
						<p class="summary l-h-2x text-muted">
							<?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 96,'…'); ?>
						</p>
						<div class="line line-lg b-b b-light"></div>
						<div
							class="text-muted post-item-foot-icon text-ellipsis list-inline<?php echo qzdy_prevent_theme(); ?>">
							<li class="viewfloat">
								<i class="layui-icon layui-icon-slider"></i><a
									href="<?php $category = get_the_category();if($category[0]){echo ''.get_category_link($category[0]->term_id ).'';}?>"><?php foreach((get_the_category()) as $category){echo $category->cat_name;} ?>
								</a></li><li><i class="layui-icon layui-icon-log"></i><?php the_time('Y/n/j '); ?>
							</li>
							<li><i class="layui-icon layui-icon-user"></i><a href=""><?php the_author(); ?></a></li>
							<li><span class="view"><i
										class="layui-icon layui-icon-fire"></i><?php post_views(' ', ''); ?></span>
							</li>
						</div>
					</div>
				</div>
				<?php endwhile; else: ?>
				<div class="qzdy_ssnrts">
					<p>宝贝暂时没有相关的文章哦</p>
				</div>
				<?php endif; ?>
				<div class="pagination" id="pagenavi">
					<p> <?php lingfeng_pagenavi();?></p>
				</div>
			</div>
			<?php echo qzdy_sidebar_switch_right(); ?>
		</div>
	</div>
</div>
</div>
<?php get_footer();?>
